<script>
  function goodsshow(el,id){
    var obj = $('goods_'+id)||'';
    if(!id || !obj){Message.error('参数错误');return false;}
    obj.setStyle('display', 'none'==obj.getStyle('display')?'block':'none');
    el.set('html', 'none'==obj.getStyle('display')?'收起商品':'查看商品');
    return;
  }
</script>
<div class="member-main">
<{include file="site/member/activity_tab.html" app=business }>
  <div class="orderlist-warp">
        <div class="title"><{t}>申请列表<{/t}></div>
        <table class="gridlist table-goods-list" style="border-bottom:none" width="100%" border="0" cellspacing="0"  cellpadding="0">
            <tr>
                <th class="first"><{t}>活动名称<{/t}></th>
                <th><{t}>捆绑名称<{/t}></th>
                <th><{t}>活动价格<{/t}></th>
                <th><{t}>商品库存<{/t}></th>
                <th><{t}>申请状态<{/t}></th>
                <th><{t}>活动状态<{/t}></th>
                <th><{t}>操作<{/t}></th>
            </tr>
            <tbody>
                <{foreach from=$busiAct item=item name="busiAct" key=key}>
                    <tr style="text-align:center;">
                        <td class="horizontal-m"><{t}><{$item.actInfo.name}><{/t}></td>
                        <td><{t}><a href="<{link app=package ctl=site_package act=index arg0=$item.id}>"><{$item.name}></a><{/t}></td>
                        <td><{t}><{$item.amount}><{/t}></td>
                        <td><{t}><{$item.store}><{/t}></td>
                        <td><{t}><{if $item.status==1}>待审核<{elseif $item.status==2}>审核通过<{else}>审核不通过<{/if}><{/t}></td>
                        <td><{t}><{if $item.actInfo.act_open=='true'}>开启<{else}>未开启<{/if}><{/t}></td>
                        <td><{t}>
                          <a href="javascript:;" onclick="goodsshow(this,'<{$item.id}>');">查看商品</a>
                          <{if $item.status==3&&$item.actInfo.act_open=='true'}>
                            <a  href="<{link app=package ctl='site_activity' act='editAttend' arg0=$item.id}>">编辑</a>
                          <{/if}>
                          <{if $item.status != 2}>
                          <a href="<{link app=package ctl=site_activity act=quitActivity arg0=$item.id}>">退出活动</a><{/if}><{/t}></td>
                    </tr>
                    <tr class="viewMatch">
                      <td colspan="7">
                        <div class="floor_product le_zhi" id="goods_<{$item.id}>" style="width: 100%;display: none;">
                          <{if $item.goodsInfo}>
                          <ul class="floor_product_show">
                            <{foreach from=$item.goodsInfo item=thumb}>
                            <li style="margin: 1px 10px;">
                              <a href="<{link app=b2c ctl=site_product act=viewpic arg0=$thumb.goods_id }>">
                              <img class="img-lazyload" alt="<{$thumb.name}>" src="<{$thumb.image_id|storager:'s'}>" style="width:160px;height:160px;">
                              </a>
                              <p class="clo_info">
                              <a href="<{link app=b2c ctl=site_product act=index arg0=$thumb.goods_id }>" title="<{$thumb.name}>"><{$thumb.name}></a>
                              </p>
                              <p class="clo_price"><{$thumb.price|cur}></p>
                            </li>
                            <{/foreach}>
                          </ul>
                          <{/if}>
                        </div>
                      </td>
                    </tr>
                <{/foreach}>
            </tbody>
        </table>
        <{pagers data=$pager}>
  </div>
</div>